package main

import (
	"fmt"

	_ "github.com/gogf/gf/errors/gerror"
	_ "github.com/pkg/errors"
)

func main() {
	err := testError()
	fmt.Println(err)
}

func testError() (err error) {
	err = a()
	if err != nil {
		return err
	}

	return
}

func a() error {
	panic("fooooo")
}
